package cn.itsource.order.controller;


import cn.itsource.basic.util.AjaxResult;
import cn.itsource.order.domain.OrderDto;
import cn.itsource.order.service.IOrderAdoptService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/adoptOrder")
@Slf4j
public class OrderAdoptController {
    @Autowired
    private IOrderAdoptService orderAdoptService;

    //POST
    //	http://localhost/adoptOrder/submitOrder
    @PostMapping("/submitOrder")
    public AjaxResult submitOrder(@RequestBody OrderDto orderDto){


        return orderAdoptService.submitOrder(orderDto);
    }

}
